import request from '@/utils/request'

// 硬件列表
export function getModelApi(pageNum, pageSize,hardwareName) {
    return request({
        url: '/sys/params/hardware',
        method: 'get',
        params: { pageNum, pageSize,hardwareName }
    })
}
// 添加硬件
export function addModelApi(data) {
    return request({
        url: '/sys/params/hardware',
        method: 'post',
        data
    })
}
// 修改硬件
export function editModelApi(hardwareId, data) {
    return request({
        url: `/sys/params/hardware/${hardwareId}`,
        method: 'put',
        data
    })
}
// 删除硬件
export function delModelApi(hardwareId) {
    return request({
        url: `/sys/params/hardware/${hardwareId}`,
        method: 'delete',
    })
}